package com.city.ajax.supervise;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/ajax/supervise")
public class ImpAjax {
    /**
     *@deprecation 重点人管理信息
     *@author 何平
     *@date ${date}${time}$
     */
    @RequestMapping("/imp_person_manage_info")
    @ResponseBody
    public  String imp_person_manage_info(){
        return "{\"code\":0,\"msg\":\"\",\"count\":1,\"data\":[{\"id\":1,\"location\":\"兴文县\",\"leading\":\"张举\",\"age\":\"32\",\"telphone\":\"15729873652\",\"placeinfo\":\"经度：20，纬度：30\",\"impcase\":\"这里是中心城市\",\"focustime\":\"2018-7-2\",\"lastmsg\":\"举行盛会\"},{\"id\":2,\"location\":\"莲花镇\",\"leading\":\"李顺时\",\"age\":\"22\",\"telphone\":\"15729873000\",\"placeinfo\":\"经度：70，纬度：20\",\"impcase\":\"这里有重点产业\",\"focustime\":\"2018-5-2\",\"lastmsg\":\"有企业入驻\"},{\"id\":3,\"location\":\"太平镇\",\"leading\":\"方俊杰\",\"age\":\"32\",\"telphone\":\"15729872232\",\"placeinfo\":\"经度：28，纬度：30\",\"impcase\":\"有危险产业\",\"focustime\":\"2018-4-2\",\"lastmsg\":\"生产批准\"}]}";

    }

/*    @Qualifier("impPersonServiceImpl")
    @Autowired
    private ImpPersonService impPersonService;

    @RequestMapping(value = "/searchPerson")
    @ResponseBody
    public List<ImpPerson> SearchPerson(@RequestParam("name") String name){
        List<ImpPerson> impPersonList =  impPersonService.findAll();
        List<ImpPerson> result = new ArrayList<>();
        for(ImpPerson ipp:impPersonList){
            if(ipp.getName().indexOf(name) != -1){
                result.add(ipp);
            }
        }
        return  result;
    }*/

    /**
     * @Author 何平
     * @Description  重点地点信息管理
     * @Date 15:24 2018/7/24
     * @Param
     * @return
     **/
    @RequestMapping("/imp_location_manage_info")
    @ResponseBody
    public String imp_location_manage_info(){
        return "{\"code\":0,\"msg\":\"\",\"count\":1,\"data\":[{\"id\":1,\"location\":\"兴文县\",\"leading\":\"张举\",\"age\":\"32\",\"telphone\":\"15729873652\",\"placeinfo\":\"经度：20，纬度：30\",\"impcase\":\"这里是中心城市\",\"focustime\":\"2018-7-2\",\"lastmsg\":\"举行盛会\"},{\"id\":2,\"location\":\"莲花镇\",\"leading\":\"李顺时\",\"age\":\"22\",\"telphone\":\"15729873000\",\"placeinfo\":\"经度：70，纬度：20\",\"impcase\":\"这里有重点产业\",\"focustime\":\"2018-5-2\",\"lastmsg\":\"有企业入驻\"},{\"id\":3,\"location\":\"太平镇\",\"leading\":\"方俊杰\",\"age\":\"32\",\"telphone\":\"15729872232\",\"placeinfo\":\"经度：28，纬度：30\",\"impcase\":\"有危险产业\",\"focustime\":\"2018-4-2\",\"lastmsg\":\"生产批准\"}]}";
    }

    /**
     * @Author 何平 
     * @Description  重点物件信息管理
     * @Date 15:50 2018/7/24
     * @Param []
     * @return java.lang.String
     **/
    @RequestMapping("/imp_thing_manage_info")
    @ResponseBody
    public String imp_thing_manage_info(){
        return "{\"code\":0,\"msg\":\"\",\"count\":1,\"data\":[{\"id\":1,\"thingname\":\"火药\",\"leading\":\"张举\",\"age\":\"32\",\"telphone\":\"15729873652\",\"thinginfo\":\"在太平镇进行生产\",\"impcase\":\"容易发生灾害\",\"focustime\":\"2018-7-2\",\"lastmsg\":\"批准生产\"},{\"id\":2,\"thingname\":\"汽油\",\"leading\":\"李顺时\",\"age\":\"22\",\"telphone\":\"15729873000\",\"thinginfo\":\"这东西就是易燃易爆物品\",\"impcase\":\"容易发生火灾\",\"focustime\":\"2018-5-2\",\"lastmsg\":\"又有有企业入驻\"},{\"id\":3,\"thingname\":\"甲烷\",\"leading\":\"方俊杰\",\"age\":\"32\",\"telphone\":\"15729872232\",\"thinginfo\":\"容易发生爆炸\",\"impcase\":\"这东西容易发生问题\",\"focustime\":\"2018-4-2\",\"lastmsg\":\"生产批准\"}]}";
    }


    /**
     * @Author 何平 
     * @Description  重点组织信息管理
     * @Date 15:57 2018/7/24
     * @Param []
     * @return java.lang.String
     **/
    @RequestMapping("/imp_organization_manage_info")
    @ResponseBody
    public String imp_organization_manage_info(){
        return "{\"code\":0,\"msg\":\"\",\"count\":1,\"data\":[{\"id\":1,\"organization\":\"共青团\",\"leading\":\"张举\",\"age\":\"32\",\"telphone\":\"15729873652\",\"organizationinfo\":\"跟随党在一起\",\"impcase\":\"关注法阵\",\"focustime\":\"2018-7-2\",\"lastmsg\":\"组织活动\"},{\"id\":2,\"organization\":\"工人委员\",\"leading\":\"李顺时\",\"age\":\"22\",\"telphone\":\"15729873000\",\"organizationinfo\":\"他们是一群工人\",\"impcase\":\"关注工人的动态\",\"focustime\":\"2018-5-2\",\"lastmsg\":\"在企业中进行了生产活动\"},{\"id\":3,\"organization\":\"共青团\",\"leading\":\"方俊杰\",\"age\":\"32\",\"telphone\":\"15729872232\",\"organizationinfo\":\"党的青年预备组织\",\"impcase\":\"关注其发展\",\"focustime\":\"2018-4-2\",\"lastmsg\":\"他们拉了一个企业并获得了生产批准\"}]}";
    }



}
